package br.edu.fanor.esfinge.services.impl;

import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import br.edu.fanor.esfinge.entity.Autor;
import br.edu.fanor.esfinge.services.AutorServiceRemote;

@Stateless
public class AutorServiceImpl implements AutorServiceRemote{
	
	@PersistenceContext
	private EntityManager em; 

	@Override
	public Autor inserir(Autor autor) {
		em.persist(autor);
		return autor;
	}
	
	

}
